package com.googlecode.project4uz.tests;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import com.googlecode.project4uz.demo.ClassForSerialize;

public class ClassForSerializeTest {
	private ClassForSerialize test;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		test = new ClassForSerialize();
	}

	@After
	public void tearDown() throws Exception {
		test = null;
	}

	@Test
	public void testClassForSerialize() {
		assertNotNull("Obiekt nie istnieje",test);
		test=null;
		assertNull("Obiekt istnieje!",test);
		test=new ClassForSerialize();
		assertNotNull("Obiekt nie istnieje",test);
	}

	@Test
	public void testToString() {
		assertNotNull("Obiekt nie istnieje",test);
		assertTrue("Niepoprawne wykonanie toString",test.toString().length()>0);
	}
	

}
